namespace Comms.Drt {
    public class ClientStateMessage : Message {
        public int Step;

        public byte[] StateBytes;

        public override void Read(Reader reader) {
            Step = reader.ReadPackedInt32();
            StateBytes = reader.ReadBytes();
        }

        public override void Write(Writer writer) {
            writer.WritePackedInt32(Step);
            writer.WriteBytes(StateBytes);
        }
    }
}